import service from "@/utils/request.ts";
import {COMPLETE_PRE} from '@/api/port-info.ts'

/**
 * 获取参数标签下拉框
 * @param params 参数
 */
export async function getTagDropDownReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/params/getTagDropDown',
        method: 'POST',
        data: params
    });
}

/**
 * 获取参数明细列表
 * @param params 参数
 */
export async function getParamInfoListReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/params/getParamInfoList',
        method: 'POST',
        data: params
    });
}
/**
 * 保存参数标识
 * @param params 参数
 */
export async function saveTagItemReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/params/saveTagItem',
        method: 'POST',
        data: params
    });
}
/**
 * 保存参数明细
 * @param params 参数
 */
export async function saveParamInfoItemReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/params/saveParamInfoItem',
        method: 'POST',
        data: params
    });
}
/**
 * 删除参数标识
 * @param params 参数
 */
export async function delTagItemReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/params/delTagItem',
        method: 'POST',
        data: params
    });
}
/**
 * 删除参数明细
 * @param params 参数
 */
export async function delParamInfoItemReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/params/delParamInfoItem',
        method: 'POST',
        data: params
    });
}
/**
 * 获取单个参数标识信息
 * @param params 参数
 */
export async function getOneParamTagItemReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/params/getOneParamTagItem',
        method: 'POST',
        data: params
    });
}
